package com.village.friend.service.impl;

import com.village.friend.entity.UserWechatLook;
import com.village.friend.mapper.UserWechatLookMapper;
import com.village.friend.service.UserWechatLookService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 查看用户微信的记录 服务实现类
 * </p>
 *
 * @author yl
 * @since 2021-11-13
 */
@Service
public class UserWechatLookServiceImpl extends ServiceImpl<UserWechatLookMapper, UserWechatLook> implements UserWechatLookService {

    @Override
    public Integer insertOrUpdate(Integer userId, Integer userIdLooked) {
        return baseMapper.insertOrUpdate(userId,userIdLooked);
    }


    @Override
    public UserWechatLook getUserLook(Integer userId, Integer userIdLooked) {
        return baseMapper.getUserLook(userId,userIdLooked);
    }

    @Override
    public Integer getTodayUserLookCount(Integer userId) {
        return  baseMapper.getTodayUserLookCount(userId);
    }


}
